package com.medical.view.admin;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;

import com.medical.view.admin.user.UserPanel;


import com.medical.view.wicket.Model.MedResourceModel;
import com.medical.view.wicket.html.MedWebPage;

import com.medical.view.wicket.html.panal.MedPanel;
import com.medical.view.wicket.html.tabs.MedAbstractTab;
import com.medical.view.wicket.html.tabs.MedAjaxTabbedPanel;

public class AdminSubMenuPage extends MedPanel{

	public AdminSubMenuPage(String id) {
		super(id );
		 setDefaultModel(new Model("tabpanel4"));
		 
		List tabs = new ArrayList();
		
		tabs.add(new MedAbstractTab((new MedResourceModel("tab.admin.System_roles"))) {

			public Panel getPanel(String panelId) {
				return new UserPanel  (panelId);
			}

		});
	
		 add(new MedAjaxTabbedPanel("subtabs", tabs).add(new AttributeModifier("class", true,
				   getDefaultModel())));
		
	}

	 
	
}
